<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<s:layout-component name="logout">
    <form action="<c:url value="/security/logout/"/>" method='POST'>
        <table id="login-table">
            <tr>
                <th><f:message key="login.username"/>:</th>
                <td>${pageContext['request'].userPrincipal.principal.username}</td>
                <th><input name="submit" type="submit" value="<f:message key="logout"/>"/></th>
            </tr>
        </table>
    </form>
</s:layout-component>